package com.enzo.prms.common.config;


import java.util.Properties;

/**
 * @author prms1.0
 * 
 * @date:2012-5-3 ����03:00:28
 * @version :
 * 
 */
public class DefaultProperties {
	private static ApplicationProperties oApplicationProperties = null;

	/**
	 * @deprecated Field oProperties is deprecated
	 */
	protected static Properties oProperties = null;

	private DefaultProperties() {
		oApplicationProperties = new ApplicationProperties("prms-default");
	}

	private static void loadProperties() {
		oApplicationProperties = new ApplicationProperties("prms-default");
	}

	public static String getPropertyAsString(String sPropertyName,
			String sDefaultValue) {
		if (oApplicationProperties == null)
			loadProperties();
		return oApplicationProperties.getPropertyAsString(sPropertyName,
				sDefaultValue);
	}

	public static int getPropertyAsInt(String sPropertyName, int iDefaultValue) {
		if (oApplicationProperties == null)
			loadProperties();
		return oApplicationProperties.getPropertyAsInt(sPropertyName,
				iDefaultValue);
	}

}
